import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:fsuper/fsuper.dart';
import '../../utils/color_util.dart';

Widget peachButtonBuilder({String text, GestureTapCallback onTap}) {
  return GestureDetector(
    onTap: onTap,
    child: FSuper(
      width: double.infinity,
      height: 44,
      textSize: 18,
      textColor: Colors.white,
      textAlignment: Alignment.center,
      text: text ?? '登录',
      corner: Corner.all(23),
      shadowColor: Color.fromRGBO(93, 180, 242, 0.4),
      shadowOffset: Offset(0, 6),
      shadowBlur: 6,
      gradient: LinearGradient(colors: [
        ColorUtil.color("#3B8CED"),
        ColorUtil.color("#5DB4F2"),
      ]),
    ),
  );
}
